﻿<%@ Page Language="C#" MasterPageFile="~/master/public.master" AutoEventWireup="true"
    CodeFile="purchase-gift-certificate.aspx.cs" Inherits="purchase_gift_certificate" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="right-content">
        <table width="78%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" bgcolor="#f6f6f6" class="plnk" style="padding: 0 10px;">
                    <a href="<%= AutoGear.BLL.CustomSiteMap.Home %>">Home</a> &raquo; <a href="<%= SiteGlobals.BaseUrl %>purchase-gift-certificate.aspx">
                        Gift Certificate </a>
                </td>
            </tr>
            <tr>
                <td height="10">
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10">
                                <img src="<%# SiteGlobals.BaseUrl %>images/left-top.png" width="10" height="10" />
                            </td>
                            <td width="730" class="blackback">
                            </td>
                            <td width="10">
                                <img src="<%# SiteGlobals.BaseUrl %>images/right-top.png" width="10" height="10" />
                            </td>
                        </tr>
                        <tr>
                            <td class="blackback">
                                &nbsp;
                            </td>
                            <td class="blackback">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td colspan="3">
                                                        <div class="bc_left">
                                                        </div>
                                                        <div class="bc_middle">
                                                        </div>
                                                        <div class="bc_right">
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="horizontalseperator10">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 10px 0;">
                                            <asp:ValidationSummary ID="ValidationSummary1" HeaderText="You have missed the following item(s)"
                                                ShowMessageBox="false" ShowSummary="false" runat="server" />
                                            <%--<CC:ResponseMessage ID="rpGiftCertificate" runat="server" />--%>
                                            <ucc:ResponseMessage ID="rpGiftCertificate" runat="server"></ucc:ResponseMessage>
                                            <table align="center" cellspacing="8" align="center">
                                                <tr>
                                                    <td style="width: 125px">
                                                        <strong>Amount</strong><span class="required">*</span> ($) :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="tbAmount" runat="server" Width="50px" CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvAmount" ControlToValidate="tbAmount" Display="Dynamic"
                                                            runat="server" ErrorMessage="Amount is required" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revAmount" runat="server" ControlToValidate="tbAmount"
                                                            ErrorMessage="Amount should be numeric" Display="Dynamic" ValidationExpression="^[0-9]*[.]?[0-9]{0,2}$"
                                                            SetFocusOnError="True"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <strong>Quantity<span class="required">*</span> :</strong>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="tbQuantity" runat="server" Width="50px" CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvTextBoxQuantity" ControlToValidate="tbQuantity"
                                                            Display="Dynamic" runat="server" SetFocusOnError="True" ErrorMessage="Quantity is required"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revTextBoxQuantity" runat="server" ControlToValidate="tbQuantity"
                                                            ErrorMessage="Quantity should be whole number" Display="Dynamic" ValidationExpression="^[0-9]*$"
                                                            SetFocusOnError="True"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        Please complete the form and enter your personalized message below.
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <strong>From Email<span class="required">*</span> :</strong>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="tbFromEmail" runat="server" Width="200px" CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvTextBoxEmail" ControlToValidate="tbFromEmail"
                                                            Display="Dynamic" runat="server" ErrorMessage="From Email is required" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revTextBoxEmail" runat="server" ControlToValidate="tbFromEmail"
                                                            ErrorMessage="Invalid Email address" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                            SetFocusOnError="True"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <strong>From Name<span class="required">*</span> :</strong>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox runat="server" ID="tbFromName" ErrorMessage="Required" Width="200px"
                                                            CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbFromName"
                                                            Display="Dynamic" ErrorMessage="From Name is required" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <strong>To Email<span class="required">*</span> :</strong>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="tbToEmail" Width="200px" runat="server" CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvTextBoxToAddess" ControlToValidate="tbToEmail"
                                                            Display="Dynamic" runat="server" ErrorMessage="To Email is required" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                        <br />
                                                        <asp:RegularExpressionValidator ID="revTextBoxToAddess" runat="server" ControlToValidate="tbToEmail"
                                                            ErrorMessage="Invalid Email address" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                            SetFocusOnError="True"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <strong>To Name<span class="required">*</span> :</strong>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox runat="server" ID="tbToName" ErrorMessage="Required" Width="200px" CssClass="textb"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbToName"
                                                            ErrorMessage="To Name is required" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <strong>Message :</strong>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:TextBox ID="tbMessege" runat="server" CssClass="textb" Width="100%" Height="150px"
                                                            TextMode="MultiLine"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <%--   <asp:Button ID="ButtonSubmit" runat="server" Text="Add to Cart" Width="100px" CssClass="formbtn"
                                                        OnClick="ButtonSubmit_Click" />--%>
                                                        <asp:ImageButton runat="server" ID="ButtonSubmit" ImageUrl="~/images/btn-add-to-cart.gif"
                                                            OnClick="ButtonSubmit_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="blackback">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <img src="<%# SiteGlobals.BaseUrl %>images/left-bottom.png" width="10" height="10" />
                            </td>
                            <td class="blackback">
                            </td>
                            <td>
                                <img src="<%# SiteGlobals.BaseUrl %>images/right-bottom.png" width="10" height="10" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
